//
//  QInvoiceDetailCell.m
//  QoilPublic
//
//  Created by 杨凯 on 2017/2/21.
//  Copyright © 2017年 杨凯. All rights reserved.
//

#import "QInvoiceDetailCell.h"
@interface QInvoiceDetailCell()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UILabel *coutLabel;
@property (weak, nonatomic) IBOutlet UIImageView *iconImg;

@end
@implementation QInvoiceDetailCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)setIndexPath:(NSIndexPath *)indexPath{
    _indexPath =indexPath;
    if (_indexPath.row== 0) {
        _titleLabel.text =@"发票类型";
        _priceLabel.text =@"普票";
        _priceLabel.textColor =[QColorUtility defaultBlueColor];
        
    }else if (_indexPath.row==1){
        _titleLabel.text =@"开票金额";
        _priceLabel.text =[NSString stringWithFormat:@"%@",@"7400"];
        _coutLabel.text =[NSString stringWithFormat:@"%@",@"(8个订单)"];
    }else if (_indexPath.row ==2){
        _titleLabel.text =@"开票税费";
        _priceLabel.text =[NSString stringWithFormat:@"%@",@"120"];
        _coutLabel.text =@"元";
    }else if (indexPath.row ==3){
        _titleLabel.text =@"开票人信息";
        _priceLabel.text =[NSString stringWithFormat:@"%@",@"包鑫"];
        _priceLabel.textColor =[QColorUtility defaultLowGrayColor];
        _coutLabel.text =[NSString stringWithFormat:@"%@",@"18567709937"];
        _iconImg.hidden =NO;

    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
